home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / imake / Project.tmpl < prev    next >
Encoding:
Text File  |  1992-08-20  |  18.8 KB  |  666 lines

  1. XCOMM -------------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters
  3. XCOMM $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  4.  
  5. /*****************************************************************************
  6.  *                                                                           *
  7.  *                            DEFAULT DEFINITONS                             *
  8.  *                                                                           *
  9.  * The following section contains defaults for things that can be overridden *
  10.  * in the various *.cf and site.def files.  DO NOT EDIT!                     *
  11.  *                                                                           *
  12.  ****************************************************************************/
  13.  
  14. #define ProjectX        5    /* do *not* change this line */
  15.  
  16. /*
  17.  * X-specific things
  18.  */
  19. #ifndef BuildServer
  20.   #define BuildServer        YES
  21. #endif
  22. #ifndef BuildFonts
  23.   #define BuildFonts        BuildServer
  24. #endif
  25. #ifndef BuildFontServer
  26.   #define BuildFontServer        BuildServer
  27. #endif
  28. #ifndef BuildPex
  29.   #define BuildPex        YES
  30. #endif
  31. #ifndef BuildPexClients
  32.   #define BuildPexClients        BuildPex
  33. #endif
  34. #ifndef BuildPexExt
  35.   #if BuildServer
  36.     #define BuildPexExt        BuildPex
  37.   #else
  38.     #define BuildPexExt        NO
  39.   #endif
  40. #endif
  41. #ifndef BuildXInputExt
  42.   #define BuildXInputExt        NO
  43. #endif
  44. #ifndef BuildXInputLib
  45.   #define BuildXInputLib        YES
  46. #endif
  47. #ifndef InstallLibManPages
  48.   #define InstallLibManPages    YES
  49. #endif
  50. #ifndef InstallXtermSetUID
  51.   #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  52. #endif
  53. #ifndef InstallXinitConfig
  54.   #define InstallXinitConfig    NO    /* install sample xinit config */
  55. #endif
  56. #ifndef InstallXdmConfig
  57.   #define InstallXdmConfig    NO    /* install sample xdm config */
  58. #endif
  59. #ifndef XdmServersType            /* what Xservers files to use */
  60.   #if BuildServer
  61.     #define XdmServersType ws
  62.   #else
  63.     #define XdmServersType fs
  64.   #endif
  65. #endif
  66. #ifndef InstallFSConfig
  67.   #define InstallFSConfig        NO    /* install sample fs config */
  68. #endif
  69. #ifndef InstallAppDefFiles
  70.   #define InstallAppDefFiles    YES    /* install application defaults */
  71. #endif
  72. #ifndef DebugLibX
  73.   #define DebugLibX        NO    /* debugged X library */
  74. #endif
  75. #ifndef DebugLibXArchive
  76.   #define DebugLibXArchive    NO    /* archive file of above */
  77. #endif
  78. #ifndef ProfileLibX
  79.   #define ProfileLibX        NO    /* profiled X library */
  80. #endif
  81. #ifndef ProfileLibXArchive
  82.   #define ProfileLibXArchive    NO    /* archive file of above */
  83. #endif
  84. #ifndef DebugOldLibX
  85.   #define DebugOldLibX        NO    /* debugged old X library */
  86. #endif
  87. #ifndef ProfileOldLibX
  88.   #define ProfileOldLibX        NO    /* profiled old X library */
  89. #endif
  90. #ifndef DebugLibXt
  91.   #define DebugLibXt        NO    /* debugged toolkit library */
  92. #endif
  93. #ifndef ProfileLibXt
  94.   #define ProfileLibXt        NO    /* profiled toolkit library */
  95. #endif
  96. #ifndef DebugLibXaw
  97.   #define DebugLibXaw        NO    /* debugged widget library */
  98. #endif
  99. #ifndef ProfileLibXaw
  100.   #define ProfileLibXaw        NO    /* profiled widget library */
  101. #endif
  102. #ifndef DebugLibXext
  103.   #define DebugLibXext        NO    /* debugged Xext library */
  104. #endif
  105. #ifndef ProfileLibXext
  106.   #define ProfileLibXext        NO    /* profiled Xext library */
  107. #endif
  108. #ifndef DebugLibXmu
  109.   #define DebugLibXmu        NO    /* debugged Xmu library */
  110. #endif
  111. #ifndef ProfileLibXmu
  112.   #define ProfileLibXmu        NO    /* profiled Xmu library */
  113. #endif
  114. #ifndef DebugLibXau
  115.   #define DebugLibXau        NO    /* debugged auth library */
  116. #endif
  117. #ifndef ProfileLibXau
  118.   #define ProfileLibXau        NO    /* profiled auth library */
  119. #endif
  120. #ifndef DebugLibXdmcp
  121.   #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  122. #endif
  123. #ifndef ProfileLibXdmcp
  124.   #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  125. #endif
  126. #ifndef ManDirectoryRoot
  127.   #ifdef ProjectRoot
  128.     #define ManDirectoryRoot Concat(ProjectRoot,/man)
  129.     #ifndef XmanLocalSearchPath
  130.       #define XmanLocalSearchPath ManDirectoryRoot
  131.     #endif
  132.   #else
  133.     #if SystemV4
  134.       #define ManDirectoryRoot /usr/share/man
  135.     #else
  136.       #define ManDirectoryRoot /usr/man
  137.     #endif
  138.   #endif
  139. #endif
  140. #ifndef ManSuffix
  141.   #define ManSuffix    n        /* use just one tab or cpp will die */
  142. #endif
  143. #ifndef LibManSuffix
  144.   #define LibManSuffix    3        /* use just one tab or cpp will die */
  145. #endif
  146. #ifndef HasXdmAuth
  147.   #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  148. #endif
  149. #ifndef BDFTOSNFFILT
  150.   #define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINDIR)/bdftosnf\"
  151. #endif
  152. #ifndef SHELLPATH
  153. #define SHELLPATH -DSHELLPATH=\"/bin/sh\"
  154. #endif
  155. #ifndef ZBDFTOSNFFILT
  156. #define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINDIR)/bdftosnf $(FONTCFLAGS)\""
  157. #endif
  158. #ifndef FontFilters
  159. #define FontFilters BDFTOSNFFILT SHELLPATH ZBDFTOSNFFILT
  160. #endif
  161. #ifndef PrimaryScreenResolution
  162. #define PrimaryScreenResolution 72        /* a common resolution */
  163. #endif
  164. #ifndef DefaultFontPath
  165. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  166. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  167. #else
  168. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  169. #endif
  170. #endif
  171. #ifndef DefaultRGBDatabase
  172. #define DefaultRGBDatabase $(LIBDIR)/rgb
  173. #endif
  174. #ifndef FontCompilerFlags
  175. #define FontCompilerFlags -t
  176. #endif
  177. #ifndef ConnectionFlags
  178. #if (SystemV || SystemV4) && !HasSockets
  179. #define ConnectionFlags -DSTREAMSCONN
  180. #else
  181. #ifdef sprite  
  182. #define ConnectionFlags -DTCPCONN -DSPRITEPDEVCONN
  183. #else
  184. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  185. #endif  
  186. #endif
  187. #endif
  188. #ifndef FontOSDefines
  189. #define FontOSDefines /**/
  190. #endif
  191. #ifndef FontDefines
  192. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  193. #endif
  194. #ifndef ExtensionOSDefines
  195. #define ExtensionOSDefines /**/
  196. #endif
  197. #ifndef ExtensionDefines
  198. #ifndef PexDefines
  199. #if BuildPexExt
  200. #define PexDefines -DPEXEXT
  201. #else
  202. #define PexDefines /**/
  203. #endif
  204. #endif
  205. #ifndef ShmDefines
  206. #if HasShm
  207. #define ShmDefines -DMITSHM
  208. #else
  209. #define ShmDefines /**/
  210. #endif
  211. #endif
  212. #ifndef XInputDefines
  213. #if BuildXInputExt
  214. #define XInputDefines -DXINPUT
  215. #else
  216. #define XInputDefines /**/
  217. #endif
  218. #endif
  219. #ifndef BaseExtensionDefines
  220. #define BaseExtensionDefines -DSHAPE -DMULTIBUFFER -DMITMISC PexDefines ShmDefines XInputDefines
  221. #endif
  222. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  223. #endif
  224. #ifndef ServerExtraDefines
  225. #define ServerExtraDefines -DXDMCP
  226. #endif
  227. #ifndef ServerOSDefines
  228. #define ServerOSDefines /**/
  229. #endif
  230. #ifndef ServerDefines
  231. #define ServerDefines StandardDefines ServerExtraDefines ExtensionDefines ServerOSDefines
  232. #endif
  233. #ifndef PexDipexDefines
  234. #define PexDipexDefines /**/
  235. #endif
  236. #ifndef PexDdpexDefines
  237. #define PexDdpexDefines /**/
  238. #endif
  239. #ifndef PexPhigsDefines
  240. #ifndef PexShmIPC
  241. #define PexShmIPC HasShm
  242. #endif
  243. #if PexShmIPC
  244. #define PexPhigsDefines /**/
  245. #else
  246. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  247. #endif
  248. #endif
  249. #ifndef PexClientDefines
  250. #define PexClientDefines -DPEX_SI_PHIGS
  251. #endif
  252. #ifndef PhigsInclude
  253. #ifdef UseInstalled
  254. #define PhigsInclude -I$(INCDIR)
  255. #else
  256. #define PhigsInclude -I$(BUILDINCDIR)
  257. #endif
  258. #endif
  259. #ifndef PexCDebugFlags
  260. #define PexCDebugFlags DebuggableCDebugFlags
  261. #endif
  262. #ifndef PexCCOptions
  263. #ifdef LibraryCCOptions
  264. #define PexCCOptions LibraryCCOptions
  265. #else
  266. #define PexCCOptions DefaultCCOptions
  267. #endif
  268. #endif
  269. #ifndef DefaultFSConfigFile
  270. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  271. #endif
  272. #ifndef BinDir
  273. #ifdef ProjectRoot
  274. #define BinDir Concat(ProjectRoot,/bin)
  275. #else
  276. #define BinDir /usr/bin/X11
  277. #endif
  278. #endif
  279. #ifndef BuildIncRoot
  280. #define BuildIncRoot $(TOP)
  281. #endif
  282. #ifndef BuildIncTop
  283. #define BuildIncTop ..        /* relative to $(TOP)/X11 */
  284. #endif
  285. #ifndef LibDir
  286. #define LibDir $(USRLIBDIR)/X11
  287. #endif
  288. #ifndef ConfigDir
  289. #define ConfigDir $(LIBDIR)/config
  290. #endif
  291. #ifndef LintlibDir
  292. #define LintlibDir $(USRLIBDIR)/lint
  293. #endif
  294. #ifndef FontDir
  295. #define FontDir $(LIBDIR)/fonts
  296. #endif
  297. #ifndef AdmDir
  298. #define AdmDir /usr/adm
  299. #endif
  300. #ifndef XinitDir
  301. #define XinitDir $(LIBDIR)/xinit
  302. #endif
  303. #ifndef XdmDir
  304. #define XdmDir $(LIBDIR)/xdm
  305. #endif
  306. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  307. #define XdmConfigurationSubdirectory config
  308. #endif
  309. #ifndef TwmDir
  310. #define TwmDir $(LIBDIR)/twm
  311. #endif
  312. #ifndef ManPath
  313. #define ManPath ManDirectoryRoot
  314. #endif
  315. #ifndef ManSourcePath
  316. #define ManSourcePath $(MANPATH)/man
  317. #endif
  318. #ifndef ManDir
  319. #define ManDir $(MANSOURCEPATH)$(MANSUFFIX)
  320. #endif
  321. #ifndef LibmanDir
  322. #define LibmanDir $(MANSOURCEPATH)$(LIBMANSUFFIX)
  323. #endif
  324. #ifndef NlsDir
  325. #define NlsDir $(LIBDIR)/nls
  326. #endif
  327. #ifndef PexApiDir
  328. #define PexApiDir $(LIBDIR)/PEX
  329. #endif
  330. #ifndef XFileSearchPathBase
  331. #define XFileSearchPathBase $(LIBDIR)/%L/%T/%N%C%S:$(LIBDIR)/%l/%T/%N%C%S:$(LIBDIR)/%T/%N%C%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S
  332. #endif
  333. #ifndef XFileSearchPathDefault
  334. #ifdef XAppLoadDir
  335. #define XFileSearchPathDefault XAppLoadDir/%N%C%S:XAppLoadDir/%N%S:XFileSearchPathBase
  336. #else
  337. #define XFileSearchPathDefault XFileSearchPathBase
  338. #endif
  339. #endif
  340. #ifndef XAppLoadDir
  341. #define XAppLoadDir $(LIBDIR)/app-defaults
  342. #endif
  343. #ifndef XtErrorPrefix
  344. #define XtErrorPrefix /* as empty string */
  345. #endif
  346. #ifndef XtWarningPrefix
  347. #define XtWarningPrefix /* as empty string */
  348. #endif
  349. #ifndef OsNameDefines
  350. #define OsNameDefines /* as nothing */
  351. #endif
  352. #ifndef DefaultUserPath            /* for xdm */
  353. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  354. #endif
  355. #ifndef DefaultSystemPath        /* for xdm */
  356. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  357. #endif
  358. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  359. #define DefaultSystemShell BourneShell
  360. #endif
  361. #ifndef UseCCMakeDepend            /* use slow cc -E script */
  362. #define UseCCMakeDepend NO
  363. #endif
  364. #ifndef DependDir
  365. #if UseCCMakeDepend
  366. #define DependDir $(SCRIPTSRC)
  367. #else
  368. #define DependDir $(UTILSRC)/makedepend
  369. #endif
  370. #endif
  371. #ifndef ContribDir
  372. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  373. #endif
  374. #ifndef DependCmd
  375. #define DependCmd $(DEPENDSRC)/makedepend
  376. #endif
  377. #ifndef RemoveTargetProgramByMoving
  378. #define RemoveTargetProgramByMoving NO
  379. #endif
  380. #ifndef AllocateLocalDefines
  381. #define AllocateLocalDefines /**/
  382. #endif
  383.  
  384. #ifndef ForceNormalLib
  385. #define ForceNormalLib (HasSaberC | HasGcc)
  386. #endif
  387. #ifndef SharedLibX
  388. #define SharedLibX HasSharedLibraries
  389. #endif
  390. #ifndef NormalLibX
  391. #define NormalLibX (!SharedLibX | ForceNormalLib)
  392. #endif
  393. #ifndef SharedOldLibX
  394. #define SharedOldLibX HasSharedLibraries
  395. #endif
  396. #ifndef NormalOldLibX
  397. #define NormalOldLibX (!SharedOldLibX | ForceNormalLib)
  398. #endif
  399. #ifndef SharedLibXt
  400. #define SharedLibXt HasSharedLibraries
  401. #endif
  402. #ifndef NormalLibXt
  403. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  404. #endif
  405. #ifndef SharedLibXaw
  406. #define SharedLibXaw HasSharedLibraries
  407. #endif
  408. #ifndef NormalLibXaw
  409. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  410. #endif
  411. #ifndef SharedLibXmu
  412. #define SharedLibXmu HasSharedLibraries
  413. #endif
  414. #ifndef NormalLibXmu
  415. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  416. #endif
  417. #ifndef SharedLibXau
  418. #define SharedLibXau NO        /* don't need shared form */
  419. #endif
  420. #ifndef NormalLibXau
  421. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  422. #endif
  423. #ifndef SharedLibXdmcp
  424. #define SharedLibXdmcp NO    /* don't need shared form */
  425. #endif
  426. #ifndef NormalLibXdmcp
  427. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  428. #endif
  429. #ifndef SharedLibXext
  430. #define SharedLibXext HasSharedLibraries
  431. #endif
  432. #ifndef NormalLibXext
  433. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  434. #endif
  435. #ifndef SharedLibXinput
  436. #define SharedLibXinput HasSharedLibraries
  437. #endif
  438. #ifndef NormalLibXinput
  439. #define NormalLibXinput (!SharedLibXinput | ForceNormalLib)
  440. #endif
  441. #ifndef SharedLibPhigs
  442. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  443. #endif
  444. #ifndef NormalLibPhigs
  445. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  446. #endif
  447.  
  448.  
  449. #ifndef DoInstallExtensionsIntoXlib
  450. #define DoInstallExtensionsIntoXlib NO    /* merge libXext.a into libX11.a */
  451. #endif
  452.  
  453. XCOMM -------------------------------------------------------------------------
  454. XCOMM X Window System make variables; this need to be coordinated with rules
  455.  
  456. /*
  457.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  458.  * Makefile.
  459.  */
  460.           PATHSEP = /            /* for building filenames */
  461.         USRLIBDIR = UsrLibDir        /* libraries */
  462.            BINDIR = BinDir        /* programs */
  463.           INCROOT = IncRoot        /* base of where to put header files */
  464.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  465.       BUILDINCDIR = $(BUILDINCROOT)/X11
  466.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  467.            INCDIR = $(INCROOT)/X11    /* header files, must end in X11 */
  468.            ADMDIR = AdmDir        /* server log files */
  469.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  470.         CONFIGDIR = ConfigDir        /* build configuration information */
  471.        LINTLIBDIR = LintlibDir        /* lint libraries */
  472.  
  473.           FONTDIR = FontDir        /* font directories */
  474.          XINITDIR = XinitDir        /* xinit config files */
  475.            XDMDIR = XdmDir        /* xdm config files */
  476.            TWMDIR = TwmDir        /* twm config files */
  477.           MANPATH = ManPath        /* top of manual page tree */
  478.     MANSOURCEPATH = ManSourcePath    /* prefix for man page sources */
  479.         MANSUFFIX = ManSuffix        /* suffix for man pages */
  480.      LIBMANSUFFIX = LibManSuffix    /* suffix for library man pages */
  481.            MANDIR = ManDir        /* man pages for commands */
  482.         LIBMANDIR = LibmanDir        /* man pages for library routines */
  483.            NLSDIR = NlsDir        /* nls files */
  484.         PEXAPIDIR = PexApiDir        /* PEX support files */
  485.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  486.        FONTCFLAGS = FontCompilerFlags
  487.  
  488.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  489.  
  490. #ifdef UseInstalled
  491.             IMAKE = imake        /* assume BINDIR in path */
  492.            DEPEND = makedepend        /* assume BINDIR in path */
  493.               RGB = rgb            /* assume BINDIR in path */
  494. #ifdef SnfFonts
  495.             FONTC = bdftosnf        /* assume BINDIR in path */
  496. #else
  497.             FONTC = bdftopcf        /* assume BINDIR in path */
  498. #endif
  499.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  500.         MKDIRHIER = BourneShell $(BINDIR)/mkdirhier
  501. #else
  502.             IMAKE = $(IMAKESRC)/imake
  503.            DEPEND = DependCmd
  504.               RGB = $(RGBSRC)/rgb
  505. #ifdef SnfFonts
  506.             FONTC = $(BDFTOSNFSRC)/bdftosnf
  507. #else
  508.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  509. #endif
  510.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  511.         MKDIRHIER = BourneShell $(SCRIPTSRC)/mkdirhier.sh
  512. #endif
  513.  
  514.         CONFIGSRC = $(TOP)/config
  515.        DOCUTILSRC = $(TOP)/doc/util
  516.         CLIENTSRC = $(TOP)/clients
  517.           DEMOSRC = $(TOP)/demos
  518.            LIBSRC = $(TOP)/lib
  519.           FONTSRC = $(TOP)/fonts
  520.        INCLUDESRC = $(TOP)/X11
  521.         SERVERSRC = $(TOP)/server
  522.           UTILSRC = $(TOP)/util
  523.         SCRIPTSRC = $(UTILSRC)/scripts
  524.        EXAMPLESRC = $(TOP)/examples
  525.        CONTRIBSRC = ContribDir
  526.            DOCSRC = $(TOP)/doc
  527.            RGBSRC = $(TOP)/rgb
  528.         DEPENDSRC = DependDir
  529.          IMAKESRC = $(CONFIGSRC)
  530.          XAUTHSRC = $(LIBSRC)/Xau
  531.           XLIBSRC = $(LIBSRC)/X
  532.            XMUSRC = $(LIBSRC)/Xmu
  533.        TOOLKITSRC = $(LIBSRC)/Xt
  534.        AWIDGETSRC = $(LIBSRC)/Xaw
  535.        OLDXLIBSRC = $(LIBSRC)/oldX
  536.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  537.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  538.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  539.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  540.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  541.          FSLIBSRC = $(FONTSRC)/lib/fs
  542.     FONTSERVERSRC = $(FONTSRC)/server
  543.      EXTENSIONSRC = $(TOP)/extensions
  544.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  545.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  546.  
  547. /*
  548.  * _Use - makes a choice based on UseInstalled.
  549.  */
  550. #ifndef _Use
  551. #ifdef UseInstalled
  552. #define _Use(a,b) a
  553. #else
  554. #define _Use(a,b) b
  555. #endif
  556. #endif
  557.  
  558. /*
  559.  * _UseCat - combination of _Use and Concat.
  560.  *           exists to avoid problems with some preprocessors
  561.  */
  562. #ifndef _UseCat
  563. #if __STDC__ && !defined(UnixCpp)
  564. #ifdef UseInstalled
  565. #define _UseCat(a,b,c) a##c
  566. #else
  567. #define _UseCat(a,b,c) b##c
  568. #endif
  569. #else
  570. #ifdef UseInstalled
  571. #define _UseCat(a,b,c) a/**/c
  572. #else
  573. #define _UseCat(a,b,c) b/**/c
  574. #endif
  575. #endif
  576. #endif
  577.  
  578. #ifndef ShLibIncludeFile
  579. /* need this to make ANSI-style proprocessors happy */
  580. #define ShLibIncludeFile <noop.rules>
  581. #endif
  582.  
  583. #include ShLibIncludeFile
  584.  
  585. #if HasSharedLibraries
  586.         SOXLIBREV = SharedXlibRev
  587.           SOXTREV = SharedXtRev
  588.          SOXAWREV = SharedXawRev
  589.         SOOLDXREV = SharedOldXRev
  590.          SOXMUREV = SharedXmuRev
  591.         SOXEXTREV = SharedXextRev
  592.       SOXINPUTREV = SharedXinputRev
  593. #endif
  594.  
  595. #if !SharedLibXext
  596.   DEPEXTENSIONLIB = _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.a)
  597.      EXTENSIONLIB = LoaderLibPrefix _Use(-lXext, $(DEPEXTENSIONLIB))
  598. #endif
  599. #if !SharedLibX
  600.           DEPXLIB = $(DEPEXTENSIONLIB) _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.a)
  601.              XLIB = $(EXTENSIONLIB) LoaderLibPrefix _Use(-lX11,$(XLIBSRC)/libX11.a)
  602. #endif
  603.       DEPXAUTHLIB = _UseCat($(USRLIBDIR),$(XAUTHSRC),/libXau.a)
  604.          XAUTHLIB = LoaderLibPrefix _Use(-lXau,$(DEPXAUTHLIB))
  605.       DEPXDMCPLIB = _UseCat($(USRLIBDIR),$(XDMCPLIBSRC),/libXdmcp.a)
  606.          XDMCPLIB = LoaderLibPrefix _Use(-lXdmcp,$(DEPXDMCPLIB))
  607. #if !SharedLibXmu
  608.         DEPXMULIB = _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.a)
  609.            XMULIB = LoaderLibPrefix _Use(-lXmu,$(DEPXMULIB))
  610. #endif
  611. #if !SharedOldLibX
  612.        DEPOLDXLIB = _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.a)
  613.           OLDXLIB = LoaderLibPrefix _Use(-loldX,$(DEPOLDXLIB))
  614. #endif
  615. #if !SharedLibXt
  616.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.a)
  617.          XTOOLLIB = LoaderLibPrefix _Use(-lXt,$(DEPXTOOLLIB))
  618. #endif
  619. #if !SharedLibXaw
  620.         DEPXAWLIB = _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.a)
  621.            XAWLIB = LoaderLibPrefix _Use(-lXaw,$(DEPXAWLIB))
  622. #endif
  623. #if !SharedLibXinput
  624.         DEPXILIB = _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.a)
  625.            XILIB = LoaderLibPrefix _Use(-lXi,$(DEPXILIB))
  626. #endif
  627. #if !SharedLibPhigs
  628.         DEPPHIGSLIB = _UseCat($(USRLIBDIR),$(PHIGSLIBSRC),/libphigs.a)
  629.            PHIGSLIB = LoaderLibPrefix _Use(-lphigs,$(DEPPHIGSLIB))
  630. #endif
  631.        DEPXBSDLIB = _UseCat($(USRLIBDIR),$(LIBSRC)/Berk,/libXbsd.a)
  632.           XBSDLIB = LoaderLibPrefix _Use(-lXbsd,$(DEPXBSDLIB))
  633.  
  634.  LINTEXTENSIONLIB = _UseCat($(LINTLIBDIR),$(EXTENSIONSRC)/lib,/llib-lXext.ln)
  635.          LINTXLIB = _UseCat($(LINTLIBDIR),$(XLIBSRC),/llib-lX11.ln)
  636.           LINTXMU = _UseCat($(LINTLIBDIR),$(XMUSRC),/llib-lXmu.ln)
  637.         LINTXTOOL = _UseCat($(LINTLIBDIR),$(TOOLKITSRC),/llib-lXt.ln)
  638.           LINTXAW = _UseCat($(LINTLIBDIR),$(AWIDGETSRC),/llib-lXaw.ln)
  639.            LINTXI = _UseCat($(LINTLIBDIR),$(XILIBSRC),/llib-lXi.ln)
  640.         LINTPHIGS = _UseCat($(LINTLIBDIR),$(PHIGSLIBSRC),/llib-lphigs.ln)
  641.  
  642. #ifndef XawClientDepLibs
  643. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  644. #endif
  645. #ifndef XawClientLibs
  646. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  647. #endif
  648.  
  649. #ifndef NeedDefaultDepLibs
  650. #define NeedDefaultDepLibs YES
  651. #endif
  652.  
  653. #if NeedDefaultDepLibs
  654. /*
  655.  * Individual libraries should override this
  656.  */
  657. #if HasSharedLibraries || UseInstalled
  658.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  659. #else
  660.           DEPLIBS = $(LOCAL_LIBRARIES)
  661. #endif
  662.          DEPLIBS1 = $(DEPLIBS)
  663.          DEPLIBS2 = $(DEPLIBS)
  664.          DEPLIBS3 = $(DEPLIBS)
  665. #endif /* NeedDefaultDepLibs */
  666.